
class Property():
    def __init__(self,name,age):
        print('aa')
        self._score = age
        self._name = name
    @property
    def score(self):
        return self._score

    @score.setter
    def score(self, value):
        if not isinstance(value, int):
            print('score must be an integer!')
        if value < 0 or value > 100:
            raise ValueError('score must between 0 ~ 100!')
        self._score = value


prop = Property("微信",23)
# prop.score=50
prop.score=88
print(prop.score)

import os
print(os.name)

